package NGUYENHUUDUCARRAYEX;

import java.util.Scanner;

public class ex1 {
	public static void main(String[] args) {
		double[]Diem;
		int[]TTB;
		Diem=new double[100];
		Scanner sc = new Scanner(System.in);
		for (int i=0;i<Diem.length;i++){
			System.out.println("Diem ["+i+"]:");
			Diem[i]= sc.nextDouble();
			if(Diem[i]<0){
				break;
			}
		}
		int count =0;
		int count1 =0;
		for (int i=0;i<Diem.length;i++){
			if(Diem[i]>5){
				count++;
			}else if(Diem[i]<=5){
				count1++;
			}
		}
		System.out.println("Tren TB co: "+count);
		System.out.println("Duoi hoac bang TB co: "+count1);
		for (int i=0;i<Diem.length;i++){
			System.out.println("Diem ["+i+"]:"+Diem[i]);
	}
	}
}
